What is the ruling on going to a foreign country for studying?